package controllers

/**
 * Created by yz on 2017/5/31.
 */

import dao._
import implicits.Implicits._
import play.api.mvc._
import shared.tsPojo.BrowseGene.PhenotypeData
import tool.{FormTool, Tool}
import ujson.play.PlayJson
import upickle.default._
import utils.Utils

import javax.inject.Inject
import scala.concurrent.ExecutionContext.Implicits.global

class AbundanceScController @Inject()(cc: ControllerComponents)(
  implicit val basicDao: AbundanceScDao,
) extends AbstractController(cc) {

  def all = Action.async { implicit request =>
    basicDao.selectAll.map { x =>
      val array = Utils.getArrayByTs(x)
      Ok(writeJs(array))
    }
  }


}
